﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Web;
using System.Web.Services;
//using KoPortal;

/// <summary>
/// Summary description for WebServiceSys
/// </summary>
[WebService(Namespace = "http://localhost:85/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WebServiceSys : System.Web.Services.WebService
{

    private IContainer components = null;

    public WebServiceSys () {

        //Uncomment the following line if using designed components 
        InitializeComponent(); 
    }

    private void InitializeComponent()
    {
    }

    protected override void Dispose(bool disposing)
    {
        if (disposing && components != null)
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }

    [WebMethod]
    public string HelloWorld() {
        return "Hello World";
    }

    //__________________________________________________________________________
    [WebMethod(Description = "KoPortal.System.Data.MySQL.DBKoLocal.GetMySqlSrvList(ref tbl)", EnableSession = true)]
    public DataTable GetMySqlSrvList(DateTime dtFrom)
    {
        DataTable tbl = new DataTable("tblMySqlSrvList");
        //Exception err =
        //    KoPortal.System.Data.MySQL.DBKoLocal.GetMySqlSrvList(ref tbl);
        //tbl.TableName = "tblMySqlSrvList";
        return tbl;
    }
    
}

